<?php
/**
 * Created by IntelliJ IDEA.
 * User: keke
 * Date: 18-10-19
 * Time: 上午10:11
 */
include "./congfig/config.php";
include "./document/function.php";
$mysqli = new mysqli(hostname,username,passwd,databasename);
$sql = "SELECT * FROM test where id  = '3'   ";
$query = $mysqli->query($sql);
if (!$query)
{
    exit(jsoncall(-1,"connection fail"));
}
$result = $query->fetch_array();
var_dump($result);